﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Configuration;

namespace Mytrip.Users
{
    public class RepositorySetting
    {
        public static string connectionStringName = ConfigurationManager.AppSettings["connectionStringName"];
        public static string connectionString = ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString;
        public static int minRequiredPasswordLength = int.Parse(ConfigurationManager.AppSettings["minRequiredPasswordLength"]);
        public static int maxInvalidPasswordAttempts = int.Parse(ConfigurationManager.AppSettings["maxInvalidPasswordAttempts"]);
        public static string applicationName = HttpContext.Current.Request.ServerVariables["HTTP_HOST"];
        public static bool requiresUniqueEmail = bool.Parse(ConfigurationManager.AppSettings["requiresUniqueEmail"]);
    }
}
